﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="InspectionVehicule._Default" Async="true" %>

<%@ Register assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" namespace="System.Web.UI.WebControls" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="../Css/Styles.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="Center">
        <h1>Inspection mécanique de véhicules</h1>
        <asp:EntityDataSource ID="edsInspectionEnCours" runat="server" 
            ConnectionString="name=InspectionEntities" 
            DefaultContainerName="InspectionEntities" EntitySetName="InspectionEnCours">
        </asp:EntityDataSource>
        <asp:GridView ID="grdListeInspectionEnCours" runat="server" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" 
            BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            DataSourceID="edsInspectionEnCours" EmptyDataText="Aucune inspection en cours." 
            ForeColor="Black" GridLines="Vertical" Width="500px" CssClass="Center" 
            ShowHeaderWhenEmpty="True" 
            OnRowCommand="grdListeInspectionEnCours_RowCommand" 
            DataKeyNames="IdWorkflow">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="Id" DataFormatString="{0:000000000}" 
                    HeaderText="Inspection">
                <ItemStyle Width="150px" />
                </asp:BoundField>
                <asp:BoundField DataField="Mecanicien" HeaderText="Mécanicien">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <asp:CommandField SelectText="Ouvrir" ShowSelectButton="True" />
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
        
        <asp:Button ID="btnNouveau" runat="server" Text="Nouveau" Width="500px" onclick="btnNouveau_Click" 
                     />
        
    </div>
    </form>
</body>
</html>
